Skip to content

[rig-claude] Improve Claude dynamic-workflow compatibility for rig - #442

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
rig-claude-compat/2026-08-17-eb1a6c07266c7039
Draft

[rig-claude] Improve Claude dynamic-workflow compatibility for rig#442
github-actions[bot] wants to merge 1 commit into
mainfrom
rig-claude-compat/2026-08-17-eb1a6c07266c7039

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Compatibility gap addressed

The "Incremental migration with rig/globals" section in claude-workflow-conversion.md ended with:

export default summaries;   // summaries is a raw array

This violates the construction rule that every rig program must export an agent or a workflow — a rule that Claude dynamic-workflow users learn immediately when reading SKILL.md or the canonical example. The inconsistency would cause confusing typecheck/lint failures for anyone who copy-pasted the example.

Why this improves transfer

The fixed example now matches:

  • 340-flat-workflow-port.md (the dedicated sample for this pattern)
  • SKILL.md construction rule 7: "Export exactly one root value — an agent or a workflow"
  • The top-of-doc rig/globals example in the same file (which already used workflow({...}))

A Claude dynamic-workflow user porting a flat script can now copy the example verbatim and have it typecheck.

Files changed

  • skills/rig/references/claude-workflow-conversion.md
    • Added missing workflow import to the incremental migration code block
    • Replaced export default summaries with export default workflow({ meta, body: async () => summaries })
    • Added // Workflow role: comment per construction rule

Validation run

Docs-only change — no typecheck or test run required per the validation rules.

Remaining intentional differences

None introduced. The existing behavior differences table (failure holes, pipeline stage signature, budget units, no sandbox restrictions) is unchanged.

Generated by Daily Rig Claude Dynamic Workflow Compatibility · sonnet46 52.7 AIC · ⌖ 7.96 AIC · ⊞ 5.4K ·

The 'Incremental migration with rig/globals' section in
claude-workflow-conversion.md ended with `export default summaries`
(a raw array), which violated the construction rule that a program must
export an agent or a workflow.

Replace with `export default workflow({ meta, body: async () => summaries })`,
consistent with 340-flat-workflow-port.md and the SKILL.md canonical export rule.
Also add the missing `workflow` import.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants